<template>
	<view class="pages fl-s-c" style="height: 100vh;" :style="{background:`url(${bg}) no-repeat`}">
		<!-- <text class="c-00 fs-48 bold" style="margin-top: 346rpx;">用户申请登记入口</text> -->
		<view class="iphonex">
			<view class="w-1 p-30">
				<view class="big-btn" @click="show=true">立即开始</view>
			</view>
		</view>
		<up-popup v-model:show="show" mode="center" :closeOnClickOverlay="false" round="20rpx">
			<view class="fl-s-c p-40" style="width: 660rpx;">
				<text class="bold fs-36 c-33">温馨提示</text>
				<view class="" style="height: 60vh;overflow: auto;width: 100%;">
					<image src="https://dg.fuliaoxx.com/img/111.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/222.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/333.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/444.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/555.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/666.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/777.png" mode="widthFix" style="width: 100%;">
					</image>
					<image src="https://dg.fuliaoxx.com/img/888.png" mode="widthFix" style="width: 100%;">
					</image>
				</view>
				<scroll-view scroll-y="true" class="w-1 m-t-25" style="max-height: 350rpx;">
					<text class="c-00 fs-28">{{t}}</text>
				</scroll-view>
				<view class="w-1 fr-b-c m-t-50">
					<view class="rej fr-c c-aa fs-28" @click="show=false">拒绝</view>
					<view class="rej fr-c c-ff fs-28 bg-main" @click="clickagree">同意</view>
				</view>
			</view>
		</up-popup>
	</view>
</template>

<script setup>
	onLoad(o => {
		// if (o.scene) {
		// 	uni.setStorageSync('pid', o.scene)
		// }
		uni.setStorageSync('pid', '11289')
		getbg()
		getinfo()
	})


	const show = ref(false);

	const t = ref('')

	function getinfo() {
		uni.$post({
			url: '/api/center/About',
			data: {
				type: 10
			}
		}).then(res => {
			t.value = res.data;
		})
	}

	const bg = ref('')

	function getbg() {
		uni.$post({
			url: '/api/center/About',
			data: {
				type: 11
			}
		}).then(res => {
			bg.value = uni.$dimg(res.data);
		})
	}

	function clickagree() {
		uni.navigateTo({
			url: '/pages/fill/fill',
			success: () => {
				show.value = false
			}
		})
	}
</script>

<style>
	.pages {
		/* background: url('@/static/images/tab1/ibg.png') no-repeat; */
		background-position: center !important;
		background-size: 100% 100% !important;
	}


	.rej {
		width: 248rpx;
		height: 72rpx;
		background: #E9E9E9;
		border-radius: 46rpx 46rpx 46rpx 46rpx;
	}
</style>